package org.zhadoop.stream.cql.semanticanalyzer.analyzecontext;

import java.util.List;

import org.zhadoop.stream.api.streams.Schema;
import org.zhadoop.stream.cql.exception.SemanticAnalyzerException;
import org.zhadoop.stream.cql.semanticanalyzer.parser.context.ParseContext;
import org.zhadoop.stream.cql.semanticanalyzer.parser.context.SubmitApplicationContext;

/**
 * submit 命令语义解析内容
 * 
 * @author zwd
 *
 */
public class SubmitApplicationAnalyzeContext extends AnalyzeContext {

	private SubmitApplicationContext context;

	@Override
	public void setParseContext(ParseContext parseContext) {
		context = (SubmitApplicationContext) parseContext;
	}

	@Override
	public void validateParseContext() throws SemanticAnalyzerException {

	}

	@Override
	public List<Schema> getCreatedSchemas() {
		return null;
	}

	@Override
	public String toString() {
		return "";
	}

	public boolean isForceSubmit() {
		return context.isForce();
	}

	public String getAppName() {
		return context.getApplicationName();
	}

	public String getPhysicPlanPath() {
		return context.getPath();
	}

}
